<?php

namespace app\admin\model\member;

use think\Model;

/**
 * Bill
 */
class Bill extends Model
{
    // 表名
    protected $name = 'member_bill';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function member(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Member::class, 'member_id', 'id');
    }

    public function game(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Game::class, 'game_id', 'id');
    }
}